package com.petAdoption.manager.service;

import com.petAdoption.manager.entity.Pet;
import com.baomidou.mybatisplus.extension.service.IService;
import com.petAdoption.manager.vo.PetVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 王倩茹List<Pet> petAll(Pet pet);
 * @since 2023-08-28
 */
public interface IPetService extends IService<Pet> {
     List<PetVO> findByName(String petName);

     //根据id删除
     int deletePet(Integer pid);

     //查询所有
     List<PetVO> findByNameAll(String petName);

     //添加
     int addPet(Pet pet);

     //修改
     int updatePet(Pet pet);


     List<PetVO> findPetAll();  //根据name查找

}
